package com.worldtolearn.offer.dao;

import java.io.Serializable;
import java.util.List;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;
import org.springframework.stereotype.Repository;

import com.worldtolearn.offer.entity.Tax;

@Repository
public class TaxDao extends HibernateDaoSupport implements ITaxDao, Serializable{

    /**
     * 
     */
    private static final long serialVersionUID = 1L;

    @Autowired
    public void init(SessionFactory factory) {
        setSessionFactory(factory);
    }   
    
    @Override
    public List<Tax> getAllTax() {
        return getHibernateTemplate().find("from Tax");
    }
    
}
